package com.wuan.study.listener;

import com.wuan.study.event.Event_1;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @author v-wuan
 * @date 2023/7/13 16:18:17
 * @desc
 */
@Component
public class Listener1 implements ApplicationListener<Event_1> {

    @Override
    public void onApplicationEvent(Event_1 event) {
        System.out.println("非注解监听器：" + event.getMsg());
    }

}
